var swiper = function(){
    var attr = '';

    // 组件开关
    attr += 'off="margin padding border"'

    // 外边距
    attr += 'marginJson="0 0 0 0"'

    // 内边距
    attr += 'paddingJson="0 0 0 0"'

    // 边框
    attr += 'borderJson="0 0 0 0"'
    
    var str = '';
    str += '<div key="swiper" title="轮播图" '+attr+' class="drag">';
    str += '<img src="'+imgPath+'swiper.jpg" alt="轮播图">';
    str += '</div>';

    var div = $(str);

    return div;
}

phoneBut('轮播图','swiper','layui-icon layui-icon-console')
